package com.bibo.controller;

import com.bibo.VO.Content;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class GuanZhuContentController {
    private static final Logger logger = LoggerFactory.getLogger(GuanZhuContentController.class);

    @GetMapping("/getGuanZhuContent")
    public List<Content> getGuanZhuContent(@RequestParam String userId){
        logger.info("请求参数： ",userId);

        ArrayList<Content> contents = new ArrayList<>();
        contents.add(new Content("测试标题","测试内容哈哈哈哈哈"));
        return contents;
    }




}
